package com.ymatou.i.accounting.api.service;

import com.ymatou.i.accounting.api.parameter.GetAccountEntryListResponse;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymttest.utils.EnvSetup;
/**
*批量查询用户流水Call
*FreeMaker Template自动生成代码
*/
public class GetUserAccountEntryListCall extends YmatouBaseCall{
	private static String opurl ="api/Account/GetUserAccountEntryList";
	
	public GetUserAccountEntryListCall() {
		super(EnvSetup.getSystemUrl("api_accounting"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}

	public GetAccountEntryListResponse getAccountEntryListData() {
		GetAccountEntryListResponse data = null;
		try {
			data = (GetAccountEntryListResponse) FormatUtil.GSONToObject(getString("Data"),
					GetAccountEntryListResponse.class);
		} catch (Exception e) {
			Logger.debug("GetAccountEntryListResponse not found!!");
			e.printStackTrace();
		}
		return data;
	}
}